package com.bwda.dsrs.filecenter.mapper.dsrs;

import com.bwda.dsrs.filecenter.domain.po.registerkey.RegisterKeyPo;
import com.bwda.dsrs.filecenter.domain.condition.registerkey.RegisterKeyCondition;
import feign.Param;

import java.util.List;
/**
 * @author Administrator
 */
public interface RegisterKeyMapper extends BaseMapper<RegisterKeyPo, RegisterKeyCondition> {
    /**
     * 通过应用系统id查询秘钥注册表信息
     * @param appId
     * @return
     */
    List<RegisterKeyPo> queryRegisterKeyByAppId(@Param("appId") Integer appId);


    /**
     * Count by task code int
     *
     * @param po po
     * @return the int
     */
    int countByTaskCode(RegisterKeyPo po);

    /**
     * 根据应用系统iD查询是否已经存在默认
     * @param appId
     * @return
     */
    int countByDefault(@Param("appId") Integer appId);
}